<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<!--框架必需start-->
<script type="text/javascript" src="__PUBLIC__/libs/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/libs/js/framework.js"></script>
<link href="__PUBLIC__/libs/skins/blue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="blue"/>
<link href="__PUBLIC__/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" id="skin" prePath="__PUBLIC__"/>
<link rel="stylesheet" type="text/css" id="customSkin"/>
<!--框架必需end-->

    <link href="__PUBLIC__/css/base.css" rel="stylesheet" type="text/css">
    <script language="javascript" src="__PUBLIC__/js/global.js"></script>
    <script language="javascript" src="__PUBLIC__/js/context_menu.js"></script>
    <script language="javascript" src="__PUBLIC__/js/ieemu.js"></script>
    <script language="javascript" src="__PUBLIC__/js/dialog.js"></script>
    <script language="javascript" src="__PUBLIC__/js/dedeajax2.js"></script>
    <script language="javascript">
        function LoadSuns(ctid,tid)
        {

            if($DE(ctid).innerHTML.length < 10){
                $DE('img'+tid).src = '__PUBLIC__/images/dedecontract.gif';
                var myajax = new DedeAjax($DE(ctid));
                myajax.SendGet('__URL__/catalog_do/?dopost=GetSunLists&cid='+tid);
            }
            else{
                showHide(ctid,tid);
            }
        }
        function showHide(objname,tid)
        {

            if($DE(objname).style.display=="none")
            {
                $DE('img'+tid).src = '__PUBLIC__/images/dedecontract.gif';
                $DE(objname).style.display = BROWSER.firefox? "" : "block";
            } else {
                $DE('img'+tid).src = '__PUBLIC__/images/dedeexplode.gif';
                $DE(objname).style.display="none";
            }
        }
        if(moz) {
            extendEventObject();
            extendElementModel();
            emulateAttachEvent();
        }
        //普通栏目
        function CommonMenu(eobj,obj,tid,tname)
        {
            var popupoptions
            popupoptions = [
                new ContextItem("增加内容",function(){location="catalog_do.php?cid="+tid+"&dopost=addArchives";}),
                new ContextItem("管理内容",function(){location="catalog_do.php?cid="+tid+"&dopost=listArchives";}),
                new ContextSeperator(),
                new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
                new ContextItem("更新HTML",function(){ location="makehtml_list.php?cid="+tid; }),
                new ContextItem("获取JS文件",function(){ location="catalog_do.php?cid="+tid+"&dopost=GetJs"; }),
                new ContextSeperator(),
                new ContextItem("增加子类",function(){location="catalog_add.php?id="+tid;}),
                new ContextItem("更改栏目",function(){location="catalog_edit.php?id="+tid;}),
                new ContextSeperator(),
                new ContextItem("合并栏目",function(){location='catalog_do.php?dopost=unitCatalog&typeid='+tid}),
                new ContextItem("移动栏目",function(){location='catalog_do.php?dopost=moveCatalog&typeid='+tid}),
                new ContextItem("删除栏目",function(){location="catalog_del.php?id="+tid+"&typeoldname="+tname;}),
                new ContextSeperator(),
                new ContextItem("向上排前一级",function(){ location="catalog_do.php?cid="+tid+"&dopost=upRank"; }),
                new ContextItem("关闭菜单(<u>C</u>)",function(){})
            ]
            ContextMenu.display(eobj,popupoptions)
        }
        //封面模板
        function CommonMenuPart(eobj,obj,tid,tname)
        {
            var popupoptions
            popupoptions = [
                new ContextItem("管理内容",function(){location="catalog_do.php?cid="+tid+"&dopost=listArchives";}),
                new ContextSeperator(),
                new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
                new ContextItem("更新HTML",function(){ location="makehtml_list.php?cid="+tid; }),
                new ContextItem("获取JS文件",function(){ location="catalog_do.php?cid="+tid+"&dopost=GetJs"; }),
                new ContextSeperator(),
                new ContextItem("增加子类",function(){location="catalog_add.php?id="+tid;}),
                new ContextItem("更改栏目",function(){location="catalog_edit.php?id="+tid;}),
                new ContextSeperator(),
                new ContextItem("移动栏目",function(){location='catalog_move.php?job=movelist&typeid='+tid}),
                new ContextItem("删除栏目",function(){location="catalog_del.php?id="+tid+"&typeoldname="+tname;}),
                new ContextSeperator(),
                new ContextItem("向上排前一级",function(){ location="catalog_do.php?cid="+tid+"&dopost=upRank"; }),
                new ContextItem("关闭菜单(<u>C</u>)",function(){})
            ]
            ContextMenu.display(eobj,popupoptions)
        }
        //跳转栏目
        function SingleMenu(eobj,obj,tid,tname)
        {
            var popupoptions
            popupoptions = [
                new ContextItem("更改栏目",function(){location="catalog_edit.php?id="+tid;}),
                new ContextSeperator(),
                new ContextItem("移动栏目",function(){location='catalog_move.php?job=movelist&typeid='+tid}),
                new ContextItem("删除栏目",function(){location="catalog_del.php?id="+tid+"&typeoldname="+tname;}),
                new ContextSeperator(),
                new ContextItem("向上排前一级",function(){ window.location="catalog_do.php?cid="+tid+"&dopost=upRank"; }),
                new ContextItem("关闭菜单(<u>C</u>)",function(){})
            ]
            ContextMenu.display(eobj,popupoptions)
        }
    </script>
    <style>
        .coolbg2 {
            border: 1px solid #000000;
            background-color: #F2F5E9;
            height:18px
        }
        .coolbt2 {
            border-left: 2px solid #EFEFEF;
            border-top: 2px solid #EFEFEF;
            border-right: 2px solid #ACACAC;
            border-bottom: 2px solid #ACACAC;
            background-color: #F7FCDA
        }
        .nbline {border-bottom: 1px solid #d6d6d6; background-color:#FFFFFF; }
        .bline2 {border-bottom: 1px solid #d6d6d6; background-color:#F9FCEF; }
    </style>
</head>
<body>





<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" align="center">
    <tr>
        <td height="28" background='images/tbg.gif' style="padding-left:10px;">
            <div style="float:left">
                <strong>网站栏目管理 </strong>
            </div>
            <div style="float:right;padding-right:6px;">
                <a href='catalog_add.php?listtype=all' class='np coolbg'>增加顶级栏目</a>
                <a href='catalog_add.php?dopost=quick' class='np coolbg'>批量增加栏目</a>
                <a href="catalog_do.php?dopost=upcatcache" class='np coolbg'>更新栏目缓存</a>
                <a href="makehtml_list.php" class='np coolbg'>更新栏目HTML</a>
                </a>
            </div>
        </td>
    </tr>
    <tr>
        <td height="28" bgcolor="#ffffff">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="51%">提示：可使用右键菜单进行操作。</td>
                    <td width="49%" align="right">

                        <a href='catalog_main.php?exallct=all'>[展开全部]</a>

                        <a href='catalog_main.php'>[普通模式]</a>

                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <form name='form1' method='post' action='catalog_do.php?dopost=upRankAll'>
        <tr>
            <td height="120" bgcolor="#FFFFFF" valign="top">


                <volist name="list" id="vo">



                    <table width='100%' border='0' cellspacing='0' cellpadding='2'>
                        <tr>
                            <td style='background-color:#FBFCE2;' width='2%' class='bline'>
                                <img style='cursor:pointer'   id='img{$vo["id"]}'   onClick="LoadSuns('suns{$vo["id"]}',{$vo["id"]});"
                                src='__PUBLIC__/images/dedeexplode.gif'    width='11' height='11'></td>
                            <td style='background-color:#FBFCE2;' class='bline'>
                                <table width='98%' border='0' cellspacing='0' cellpadding='0'>
                                    <tr>
                                        <td width='50%'><input class='np' type='checkbox' name='tids[]' value='{$vo["id"]}'>
                                            <a  href='###'   oncontextmenu="CommonMenu(event,this,{$vo["id"]},'')">{$vo["name"]}[ID:{$vo["id"]}]</a>(文档：14)
                                        </td>
                                        <td align='right'><a  href='__URL__/catalog_add/?id={$vo["id"]}'>增加子类</a>|<a
                                                href='__URL__/catalog_edit/?id={$vo["id"]}'>更改</a>|<a
                                                href='__URL__/catalog_do/?dopost=moveCatalog&typeid={$vo["id"]}'>移动</a>|<a
                                                href='__URL__/catalog_del/?id={$vo["id"]}&'>删除</a>&nbsp;
                                            <input type='text' name='sortrank{$vo["id"]}' value='3' style='width:25px;height:20px'>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan='2' id='suns{$vo["id"]}'></td>
                        </tr>
                    </table>


                </volist>

                <br/>
            </td>
        </tr>
    </form>
    <tr>
        <td height="36" bgcolor="#FFFFFF" align="center">
            <table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td align="right">
                        <input type="button" name="sb1" value="更新排序" style="width:70px" class="coolbt" onClick="document.form1.submit();" />
                        <input type="button" name="sb4" value="获取JS" style="width:70px" class="coolbt" onClick="location='makehtml_js.php';" />
                        <input type="button" name="sb2" value="更新栏目HTML" style="width:90px" class="coolbt" onClick="location='makehtml_list.php';" />
                        <input type="button" name="sb3" value="更新文档HTML" style="width:90px" class="coolbt" onClick="location='makehtml_archives.php';" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>



<!-----
<div class="box1">


<table width="768" class="tableStyle" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="thead"> 您现在访问的是：所有项目</td>
          </tr>
          <tr>
            <td><table class="tableStyle" width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <th ></th>
                  <th >工程名称</th>
                  <th >客户ID</th>
                  <th >关键字</th>
                  <th >业务员</th>
                  <th >业务类型</th>
                  <th >添加时间</th>
                  <th >审核时间</th>
                  <th >详细内容</th>
                  <th >备案</th>
                  <th >合同价格</th>
              </tr>
              <volist name="list" id="vo">
              <tr>
                  <td><span class="img_add2 hand" title="点击展开"></span></td>
                  <td><a href="__URL__/projectcontent/id/{$vo['id']}">{$vo['name']}</a></td>
                  <td><a href="__URL__/projectcontent/id/{$vo['id']}">{$vo['custid']}</a></td>
                  <td><a href="__URL__/projectcontent/id/{$vo['id']}">{$vo['keyword']}</a></td>
                  <td><a href="__URL__/projectcontent/id/{$vo['id']}">{$vo['employee']}</a></td>
                  <td><a href="__URL__/projectcontent/id/{$vo['id']}">{$vo['type']}</a></td>
                  <td><a href="__URL__/projectcontent/id/{$vo['id']}">{$vo['createtime']}</a></td>
                  <td><a href="__URL__/projectcontent/id/{$vo['id']}">{$vo['audittime']}</a></td>
                  <td><a href="__URL__/projectcontent/id/{$vo['id']}">查看详细</a></td>

                  <td><a href="__URL__/projectcontent/id/{$vo['id']}">{$vo['beian']}</a></td>
                  <td><a href="__URL__/projectcontent/id/{$vo['id']}">{$vo['price']}</a></td>


              </tr>
              </volist>
            </table>
            {$pageshow}

            </td>
          </tr>
        </table>

        ------>
</div>
</body>
</html>